package Impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.jian.java.bean.User;
import com.jian.java.inter.UserConsumer;
import com.jian.java.inter.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Jiange
 * @create 2021-05-23-13:28
 */
@Service
public class UserConsumerImpl implements UserConsumer {
    @Autowired
    UserService userService;
    @Override
    public String getName(User user) {
        System.out.println(userService);
        System.out.println(userService.getAge(user));
        return user.getName();
    }
}
